home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / AlienHunter / AlienHunterDemo.jar / a$a.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-09-03  |  5.3 KB  |  354 lines

  1. import javax.microedition.lcdui.Image;
  2.  
  3. abstract class a$a {
  4.    // $FF: renamed from: for javax.microedition.lcdui.Image[]
  5.    private Image[] field_0;
  6.    // $FF: renamed from: long int
  7.    private int field_1;
  8.    // $FF: renamed from: char int
  9.    private int field_2;
  10.    // $FF: renamed from: if int
  11.    private int field_3;
  12.    // $FF: renamed from: void int
  13.    private int field_4;
  14.    // $FF: renamed from: else int
  15.    private int field_5;
  16.    // $FF: renamed from: a int[]
  17.    private int[] field_6;
  18.    // $FF: renamed from: goto boolean
  19.    private boolean field_7;
  20.    // $FF: renamed from: case long
  21.    private long field_8;
  22.    // $FF: renamed from: b int
  23.    protected int field_9;
  24.    // $FF: renamed from: try int
  25.    protected int field_10;
  26.    // $FF: renamed from: do int
  27.    protected int field_11;
  28.    // $FF: renamed from: byte int
  29.    protected int field_12;
  30.    // $FF: renamed from: int int
  31.    protected int field_13;
  32.    // $FF: renamed from: null boolean
  33.    protected boolean field_14;
  34.    // $FF: renamed from: c boolean
  35.    protected boolean field_15;
  36.    // $FF: renamed from: new boolean
  37.    protected boolean field_16;
  38.    // $FF: synthetic field
  39.    private final a this$0;
  40.  
  41.    public a$a(a var1, int var2, int var3, Image[] var4, int var5) {
  42.       this.this$0 = var1;
  43.       this.field_0 = var4;
  44.       this.field_12 = var2;
  45.       this.field_13 = var3;
  46.       this.field_1 = var5;
  47.       this.field_6 = new int[100];
  48.       this.field_2 = 1;
  49.       this.field_3 = 0;
  50.       this.field_4 = 1;
  51.       this.field_11 = 0;
  52.       this.field_10 = 0;
  53.       this.field_5 = 0;
  54.       this.field_8 = 0L;
  55.       this.field_9 = Math.abs(a.access$700(var1).nextInt() % 2);
  56.       this.field_16 = true;
  57.       this.field_7 = false;
  58.       this.field_14 = false;
  59.       this.field_15 = false;
  60.       a.access$800(var1).addElement(this);
  61.       a.access$902(var1, true);
  62.    }
  63.  
  64.    // $FF: renamed from: new () void
  65.    protected abstract void method_0();
  66.  
  67.    // $FF: renamed from: try () void
  68.    public void method_1() {
  69.       if (this.field_16) {
  70.          int var1 = this.field_12 / 8 * 8;
  71.  
  72.          label71:
  73.          for(int var2 = 0; var2 < a.access$1000(this.this$0).length; var2 += 2) {
  74.             if (var1 >= a.access$1000(this.this$0)[var2] && var1 <= a.access$1000(this.this$0)[var2 + 1] && a.access$1100(this.this$0)[var2] == this.field_13) {
  75.                this.field_16 = false;
  76.  
  77.                for(int var3 = 0; var3 < a.access$200(this.this$0).size(); ++var3) {
  78.                   a$d var4 = (a$d)a.access$200(this.this$0).elementAt(var3);
  79.                   if (var4.a(this.field_12, this.field_13) && var4.a()) {
  80.                      this.field_16 = true;
  81.                      this.field_2 *= 2;
  82.                      if (!var4.byte()) {
  83.                         break label71;
  84.                      }
  85.  
  86.                      for(int var5 = 0; var5 < a.access$800(this.this$0).size(); ++var5) {
  87.                         a$a var6 = (a$a)a.access$800(this.this$0).elementAt(var5);
  88.                         if (var6.method_3(this.field_12, this.field_13 + 8) && var4.a()) {
  89.                            this.field_3 += var6.method_11();
  90.                            var6.method_5(this.field_2);
  91.                            var6.method_7(true);
  92.                            var6.method_8(true);
  93.                            break;
  94.                         }
  95.                      }
  96.  
  97.                      var4.if();
  98.                      break label71;
  99.                   }
  100.                }
  101.                break;
  102.             }
  103.          }
  104.  
  105.          if (this.field_16) {
  106.             this.field_13 += 2;
  107.          }
  108.       } else if (this.field_7) {
  109.          if (this.field_11 == -2 && System.currentTimeMillis() - this.field_8 > 1000L) {
  110.             a.access$800(this.this$0).removeElement(this);
  111.          } else if (this.field_11 == -1) {
  112.             this.field_11 = -2;
  113.             this.field_8 = System.currentTimeMillis();
  114.          } else if (this.field_11 == 3) {
  115.             this.field_11 = -1;
  116.             int var7 = this.field_3 * this.field_4 * this.field_2;
  117.             int var8 = this.field_1 * this.field_2;
  118.             a.access$1212(this.this$0, var7);
  119.             a.access$1312(this.this$0, var8);
  120.             this.method_10(var7 + var8);
  121.          } else if (this.field_11 == 2) {
  122.             this.field_11 = 3;
  123.          } else if (this.field_11 >= 0) {
  124.             this.field_11 = 2;
  125.          }
  126.       } else {
  127.          this.method_0();
  128.       }
  129.  
  130.    }
  131.  
  132.    // $FF: renamed from: a (int) void
  133.    public void method_2(int var1) {
  134.       try {
  135.          this.field_11 = ++this.field_10 % 2;
  136.          int var2 = 0;
  137.          int var3 = (this.field_13 - 2) / 4 * 4;
  138.          int var4 = (this.field_13 + 5) / 4 * 4;
  139.          boolean var5 = false;
  140.          boolean var6 = false;
  141.          boolean var7 = false;
  142.          boolean var8 = false;
  143.          boolean var9 = false;
  144.          boolean var10 = false;
  145.          boolean var11 = false;
  146.          boolean var12 = false;
  147.  
  148.          for(int var13 = 0; var13 < a.access$1400(this.this$0).length; var13 += 2) {
  149.             if (this.field_12 == a.access$1400(this.this$0)[var13]) {
  150.                if (a.access$1500(this.this$0) - a.access$1600(this.this$0) <= a.access$1700(this.this$0)[var13] && a.access$1500(this.this$0) - a.access$1600(this.this$0) >= a.access$1700(this.this$0)[var13 + 1]) {
  151.                   var8 = true;
  152.                }
  153.  
  154.                if (var3 <= a.access$1700(this.this$0)[var13] && var3 >= a.access$1700(this.this$0)[var13 + 1]) {
  155.                   if (this.field_13 > a.access$1500(this.this$0) - a.access$1600(this.this$0)) {
  156.                      var9 = true;
  157.  
  158.                      for(int var14 = 0; var14 < var1 / 2; ++var14) {
  159.                         this.field_6[var2++] = 2;
  160.                      }
  161.                   }
  162.  
  163.                   this.field_6[var2++] = 2;
  164.                   var6 = true;
  165.                   if (this.field_9 == 2) {
  166.                      var7 = true;
  167.                   }
  168.                }
  169.  
  170.                if (var4 <= a.access$1700(this.this$0)[var13] && var4 >= a.access$1700(this.this$0)[var13 + 1]) {
  171.                   if (this.field_13 < a.access$1500(this.this$0) - a.access$1600(this.this$0)) {
  172.                      var10 = true;
  173.  
  174.                      for(int var21 = 0; var21 < var1 / 2; ++var21) {
  175.                         this.field_6[var2++] = 3;
  176.                      }
  177.                   }
  178.  
  179.                   this.field_6[var2++] = 3;
  180.                   var6 = true;
  181.                   if (this.field_9 == 3) {
  182.                      var7 = true;
  183.                   }
  184.                }
  185.             }
  186.          }
  187.  
  188.          if (var8) {
  189.             if (var9) {
  190.                for(int var22 = 0; var22 < var1; ++var22) {
  191.                   this.field_6[var2++] = 2;
  192.                }
  193.             }
  194.  
  195.             if (var10) {
  196.                for(int var23 = 0; var23 < var1; ++var23) {
  197.                   this.field_6[var2++] = 3;
  198.                }
  199.             }
  200.          }
  201.  
  202.          int var24 = (this.field_12 - 2) / 8 * 8;
  203.          int var15 = (this.field_12 + 9) / 8 * 8;
  204.          var8 = false;
  205.  
  206.          for(int var16 = 0; var16 < a.access$1000(this.this$0).length; var16 += 2) {
  207.             if (a.access$1100(this.this$0)[var16] == this.field_13) {
  208.                if (a.access$1800(this.this$0) - a.access$1900(this.this$0) >= a.access$1000(this.this$0)[var16] && a.access$1800(this.this$0) - a.access$1900(this.this$0) <= a.access$1000(this.this$0)[var16 + 1]) {
  209.                   var8 = true;
  210.                }
  211.  
  212.                if (var24 >= a.access$1000(this.this$0)[var16] && var24 <= a.access$1000(this.this$0)[var16 + 1]) {
  213.                   if (this.field_12 > a.access$1800(this.this$0) - a.access$1900(this.this$0)) {
  214.                      var11 = true;
  215.                   }
  216.  
  217.                   this.field_6[var2++] = 0;
  218.                   var5 = true;
  219.                   if (this.field_9 == 0) {
  220.                      var7 = true;
  221.                   }
  222.                }
  223.  
  224.                if (var15 >= a.access$1000(this.this$0)[var16] && var15 <= a.access$1000(this.this$0)[var16 + 1]) {
  225.                   if (this.field_12 < a.access$1800(this.this$0) - a.access$1900(this.this$0)) {
  226.                      var12 = true;
  227.                   }
  228.  
  229.                   this.field_6[var2++] = 1;
  230.                   var5 = true;
  231.                   if (this.field_9 == 1) {
  232.                      var7 = true;
  233.                   }
  234.                }
  235.             }
  236.          }
  237.  
  238.          if (var8) {
  239.             if (var11) {
  240.                for(int var17 = 0; var17 < var1 / 2; ++var17) {
  241.                   this.field_6[var2++] = 0;
  242.                }
  243.             }
  244.  
  245.             if (var12) {
  246.                for(int var25 = 0; var25 < var1 / 2; ++var25) {
  247.                   this.field_6[var2++] = 1;
  248.                }
  249.             }
  250.          }
  251.  
  252.          if (var6 && var5 || !var7) {
  253.             this.field_9 = this.field_6[Math.abs(a.access$700(this.this$0).nextInt() % var2)];
  254.          }
  255.  
  256.          switch (this.field_9) {
  257.             case 0:
  258.                this.field_12 -= 2;
  259.                break;
  260.             case 1:
  261.                this.field_12 += 2;
  262.                break;
  263.             case 2:
  264.                this.field_13 -= 2;
  265.                break;
  266.             case 3:
  267.                this.field_13 += 2;
  268.          }
  269.  
  270.          for(int var26 = 0; var26 < a.access$200(this.this$0).size(); ++var26) {
  271.             a$d var18 = (a$d)a.access$200(this.this$0).elementAt(var26);
  272.             if (var18.a(this.field_12, this.field_13) && var18.a() && !var18.byte()) {
  273.                var18.a(true);
  274.                this.field_13 += 8;
  275.                this.field_15 = true;
  276.                break;
  277.             }
  278.          }
  279.       } catch (Exception var19) {
  280.       }
  281.  
  282.    }
  283.  
  284.    // $FF: renamed from: if (int, int) boolean
  285.    public boolean method_3(int var1, int var2) {
  286.       if (var2 != this.field_13) {
  287.          return false;
  288.       } else {
  289.          return this.field_12 <= var1 && this.field_12 + 8 >= var1;
  290.       }
  291.    }
  292.  
  293.    // $FF: renamed from: a (int, int) boolean
  294.    public boolean method_4(int var1, int var2) {
  295.       if (this.field_11 < 0) {
  296.          return false;
  297.       } else if (this.field_13 - 8 + 1 <= var2 && this.field_13 + 8 - 1 >= var2) {
  298.          return this.field_12 - 8 + 1 <= var1 && this.field_12 + 8 - 1 >= var1;
  299.       } else {
  300.          return false;
  301.       }
  302.    }
  303.  
  304.    // $FF: renamed from: if (int) void
  305.    public void method_5(int var1) {
  306.       this.field_4 = var1;
  307.    }
  308.  
  309.    // $FF: renamed from: do (boolean) void
  310.    public void method_6(boolean var1) {
  311.       this.field_14 = var1;
  312.    }
  313.  
  314.    // $FF: renamed from: a (boolean) void
  315.    public void method_7(boolean var1) {
  316.       this.field_16 = var1;
  317.    }
  318.  
  319.    // $FF: renamed from: if (boolean) void
  320.    public void method_8(boolean var1) {
  321.       this.field_7 = var1;
  322.    }
  323.  
  324.    // $FF: renamed from: int () int
  325.    public int method_9() {
  326.       return this.field_5;
  327.    }
  328.  
  329.    // $FF: renamed from: do (int) void
  330.    public void method_10(int var1) {
  331.       this.field_5 = var1;
  332.    }
  333.  
  334.    // $FF: renamed from: for () int
  335.    public int method_11() {
  336.       return this.field_1;
  337.    }
  338.  
  339.    // $FF: renamed from: if () int
  340.    public int method_12() {
  341.       return this.field_12;
  342.    }
  343.  
  344.    // $FF: renamed from: a () int
  345.    public int method_13() {
  346.       return this.field_13;
  347.    }
  348.  
  349.    // $FF: renamed from: do () javax.microedition.lcdui.Image
  350.    public Image method_14() {
  351.       return this.field_11 >= 0 ? this.field_0[this.field_11] : null;
  352.    }
  353. }
  354.